package org.judo.components;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class AbstractComponentController implements ComponentController
{
	protected Object value;
	
	public void afterAction(HttpServletRequest request, HttpServletResponse response) throws ComponentException
	{
	}

	public void beforeAction(HttpServletRequest request, HttpServletResponse response) throws ComponentException
	{	
	}

	public void pageContollerLoaded() throws ComponentException
	{	
	}

	public boolean isList()
	{
		return false;
	}

	public void populate(Object obj)
	{
		value = obj;
	}

	public void reset()
	{	
	}

	public Object value()
	{
		return value;
	}
}
